package com.heima.tuozhan.day01.Poultry;

public class Duck extends Poultry {
    public Duck() {
    }

    public Duck(String color, int age) {
        super(color, age);
    }

    @Override
    void eat() {
        System.out.println(getAge()+"岁的"+getColor()+"色鸭子在吃鱼");
    }
    void swim(){
        System.out.println(getAge()+"岁的"+getColor()+"色鸭子在游泳");
    }
}
